/**
 * MyUncaughtExceptionHandler.java
 * 版权所有(C) 2013
 * 创建者:cuiran 2013-12-2 下午2:04:38
 */
package com.ghyf.mplay.net.log.thread;

import java.lang.Thread.UncaughtExceptionHandler;

import com.ghyf.mplay.util.LogUtil;

/**
 * 出现异常直接退出程序处理 
 * @author cuiran
 * @version 1.0.0
 */
public class MyUncaughtExceptionHandler implements UncaughtExceptionHandler {
	private static final String TAG = "MyUncaughtExceptionHandler";  
	/* (non-Javadoc)
	 * @see java.lang.Thread.UncaughtExceptionHandler#uncaughtException(java.lang.Thread, java.lang.Throwable)
	 */
	@Override
	public void uncaughtException(Thread t, Throwable e) {
		
		LogUtil.e(TAG, "线程："+t.getName(),e);
	}

}
